package com.whc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whc.entity.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 韦红材
 * @ClassName GoodsMapper
 * @data 2024/10/22 16:09
 * @Version V1.0
 **/
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    List<Goods> selectByCondition(Goods goods);

    //查询降价商品
    List<Goods> selectCheaperGoods(long userId);

    void addGoodsWanters(long goodId);

    List<Goods> selectSoldGoods(long userId);

    List<Goods> selectBoughtGoods(long userId);
}
